package Mangos::DB::Mangos::CreatureMovement;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'creature_movement',

    columns => 
    [
        id          => { type => 'integer', not_null => 1 },
        point       => { type => 'integer', not_null => 1 },
        position_x  => { type => 'float', default => '0', not_null => 1, precision => 32 },
        position_y  => { type => 'float', default => '0', not_null => 1, precision => 32 },
        position_z  => { type => 'float', default => '0', not_null => 1, precision => 32 },
        waittime    => { type => 'integer', default => '0', not_null => 1 },
        textid1     => { type => 'integer', default => '0', not_null => 1 },
        textid2     => { type => 'integer', default => '0', not_null => 1 },
        textid3     => { type => 'integer', default => '0', not_null => 1 },
        textid4     => { type => 'integer', default => '0', not_null => 1 },
        textid5     => { type => 'integer', default => '0', not_null => 1 },
        emote       => { type => 'integer', default => '0', not_null => 1 },
        spell       => { type => 'integer', default => '0', not_null => 1 },
        wpguid      => { type => 'integer', default => '0', not_null => 1 },
        orientation => { type => 'float', default => '0', not_null => 1, precision => 32 },
        model1      => { type => 'integer', default => '0', not_null => 1 },
        model2      => { type => 'integer', default => '0', not_null => 1 },
    ],

    primary_key_columns => [ 'id', 'point' ],
);

1;

package Mangos::DB::Mangos::CreatureMovement::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::CreatureMovement' }

__PACKAGE__->make_manager_methods('creature_movement');

1;
